package cc.wanforme.chipmunity.system.event;

import org.springframework.context.ApplicationEvent;

/**
 * @author wanne
 * 2019年8月17日
 * 
 */
public class BaseEvent  extends ApplicationEvent{
	private static final long serialVersionUID = 1L;

	/** DELETE - 永久性删除，UPDATE - 更新（文章这类设置state为delete的属于更新）*/
	public static enum OperateType{
		ADD, UPDATE, DELETE, UPDATE_DELETE
	}
	
	private OperateType type;
	
	public BaseEvent(Object source, OperateType type) {
		super(source);
		this.type = type;
	}
	
	public OperateType getType() {
		return type;
	}
}
